package designPattern.adapter.voltage;

public class JapanAppliance extends Appliance {

	public JapanAppliance(int voltage) {
		super(voltage);
	}

	@Override
	public void run() {
		if (getVoltage() != 110) {
			System.out.println("电器电压不符，无法运行！");
		} else {
			System.out.println("电器电压正确，正常运行！");
		}
	}
}
